public class Ex5_16{
	public static void main(String[] args){
		for (int year = 2000; year <= 2010; year++)
			System.out.printf("%d\t\t%d\n", year, numberOfDaysInAYear(year));
	}
	
	public static int numberOfDaysInAYear(int year){
		if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
			return 366;
		else
			return 365;
	}
}
